package com.cn.demo.decorator;

/**
 * 描述
 *
 * @author wangjf
 * @version 1.0
 * @createDate 2020/1/7 15:03
 * @projectName demo
 */
public class DecoratorImpl extends Decorator {


    public DecoratorImpl(IComponent component) {
        super(component);
    }

    @Override
    public void opr() {
        super.operation();
        addFun();
    }

    public void addFun() {
        System.out.println("功能增强..");
    }


}
